package com.wgts.wgts.mvp.model.imp;

import com.wgts.wgts.mvp.model.IMyOrderDetailsActivityModel;
import com.wgts.wgts.netmodle.HttpResultSubscriber;
import com.wgts.wgts.netmodle.NetService;
import com.wgts.wgts.netmodle.resp.ChangeGoodsPlanEntity;
import com.wgts.wgts.netmodle.resp.CurrentEntity;
import com.wgts.wgts.netmodle.resp.MyOrderDetailsEntity;
import com.wgts.wgts.tools.CountDownTime;

import java.util.List;

/*
 *
 *
 *   data:2018/10/914:27
 *
 */public class MyOrderDetailsActivityModel implements IMyOrderDetailsActivityModel {
     private NetService netService;
     private CountDownTime countDownTime;

    public MyOrderDetailsActivityModel(NetService netService, CountDownTime countDownTime) {
        this.netService = netService;
        this.countDownTime = countDownTime;
    }

    @Override
    public void orderDetailsResult(int orderId, HttpResultSubscriber<MyOrderDetailsEntity> subscriber) {
        netService.myOrderDetails(orderId, subscriber);
    }

    @Override
    public void changeOrderPlan(Integer orderId, HttpResultSubscriber<List<ChangeGoodsPlanEntity>> subscriber) {
        netService.changeGoodsPlan(orderId, subscriber);
    }

    @Override
    public void cancelOrder(String orderId, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.cancelOrder(orderId, subscriber);
    }

    @Override
    public void takeGoods(String orderId, HttpResultSubscriber<CurrentEntity> subscriber) {
        netService.takeGoods(orderId, subscriber);
    }
}
